package com.jshan.base.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.time.LocalDateTime;

@Data
@TableName("sys_server_metrics")
@Schema(description = "服务器监控指标实体")
public class ServerMetrics {
    @TableId(type = IdType.AUTO)
    @Schema(description = "监控指标ID")
    private Long id;

    @Schema(description = "服务器ID")
    private Long serverId;

    @Schema(description = "CPU使用率(%)")
    private Double cpuUsage;

    @Schema(description = "内存使用率(%)")
    private Double memoryUsage;

    @Schema(description = "磁盘使用率(%)")
    private Double diskUsage;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;
}
